export class ArticleItem{
    title:string;
    prevText:string;
    addtime:string;
    keywords:string[];
    viewCount:number;
    prevImg:string;

    constructor(title:string,prevText:string,keywords:string[],prevImg:string,addtime:string,viewCount?:number){      
        this.title = title;
        this.prevText = prevText;
        this.addtime = addtime;
        this.keywords = keywords;
        this.viewCount = viewCount || 0;
        this.prevImg = prevImg;
    }
}